<template>
<div>
    <Modal
        v-model="modal"
        title="确认提交"
        @on-ok="ok"
        @on-cancel="cancel">
        <p>确认选择{{ text }}这些展位吗？</p>
    </Modal>
</div>
</template>
<script>
    export default {
        data () {
            return {
                modal: false,
                text: '确认提交',
            }
        },
        methods: {
            ok () {
                this.$emit('confirm');
            },
            cancel () {
                this.$Message.info('Clicked cancel');
            }
        }
    }
</script>
